class Foo
{
    public function foo()
    {
        //ERROR: match
        foo();
        bar();
        //ERROR: match
        foo();
        $x = bar();
        //ERROR: match
        foo();
        foo2(bar());
        //ERROR: match
        foo();
        return bar();
    }
}
